import java.time.ZonedDateTime;

/**
 * @ClassName: ZonedDateTimeDemo
 * @Title: cloud2021
 * @Package: PACKAGE_NAME
 * @Description:
 * @Author: Kisen
 * @Date: 2021/8/27 23:24
 */
public class ZonedDateTimeDemo {
    public static void main(String[] args) {
        // ZonedDateTime zbj = ZonedDateTime.now(ZoneId.from("America/New_York")); // 用指定时区获取当前时间
        ZonedDateTime zbj = ZonedDateTime.now(); // 默认时区
        System.out.println(zbj);
    }
}
